#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd .vitepress/dist

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io
git push -f https://github.com/plus-pro-components/plus-pro-components.github.io.git master:gh-pages

# rsync -av --exclude=".*" ./  root@39.103.160.178:/root/plus-pro-components

cd -
